from django.shortcuts import render
from django.views import View
import requests

from info.models import RentInfo


# Create your views here.
class LocationView(View):
    def get(self, request):
        return render(request, 'change_form.html')


class GetIpView(View):

    def get(self, request):
        return render(request, 'get_ip.html')


def home(request):
    rentinfo = RentInfo.objects.all()
    return render(request, "index.html", {'rentinfo': rentinfo})
